package it.eng.get.pdfwe.fillers.jr;

import it.eng.get.pdfwe.fillers.ModelFiller;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.xml.parsers.DocumentBuilderFactory;

import net.sf.jasperreports.engine.data.JRXmlDataSource;

import org.w3c.dom.Document;


public class JREmptyFiller extends ModelFiller {

	public JREmptyFiller(HttpServletRequest request) throws Exception {
		super(request);
	}

	@Override
	public JRFillerBean getData() throws Exception {
		Document empty = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
		return new JRFillerBean(new HashMap(),new JRXmlDataSource(empty));
	}

}
